package com.leo.basic.scheduler.bean;

import lombok.Getter;
import lombok.Setter;

/**
 * @ClassName ResponseData
 * @Description 定时任务操作结果返回记录
 * @Author wangss
 * @date 2021.09.23 14:25
 * @Version 1.0
 */
@Setter
@Getter
public class ResponseData<E> {

    private boolean success;

    private String message;

    private E data;

    public ResponseData(boolean success, String message) {
        this.success = success;
        this.message = message;
    }

    public ResponseData(boolean success, E data) {
        this.success = success;
        this.data = data;
    }
}
